<div class="users index">
	<!-- <h2><?php __('Danh sách tài khoản người dùng');?></h2> -->
		<h2 ><b>DANH SÁCH TÀI KHOẢN NGƯỜI DÙNG</b></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
		<!--	<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('username');?></th>
			<th><?php echo $this->Paginator->sort('Ngày tạo','created');?></th>
			<th><?php echo $this->Paginator->sort('Ngày sửa','modified');?></th>
			<th><?php echo $this->Paginator->sort('Quyền','role');?></th>
			<th class="actions"><?php __('Actions');?></th>
		-->
			<th><b>ID</b></th>
			<th><b>Tài khoản</b></th>
			<th><b>Ngày tạo</b></th>
			<th><b>Ngày sửa</b></th>
			<th><b>Quyền người dùng</b></th>
			<th class="actions"><?php __('Điều chỉnh');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($users as $user):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $user['User']['username']; ?>&nbsp;</td>
		<td><?php echo $user['User']['created']; ?>&nbsp;</td>
		<td><?php echo $user['User']['modified']; ?>&nbsp;</td>
		<td><?php echo $user['User']['role']; ?>&nbsp;</td>
		
		<td class="actions">
		<?php echo $this->Html->link(__('Đổi mậu khẩu', true), array('action' => 'editp', $user['User']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $user['User']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<!-- <p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p> -->

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Lùi lại', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Tiếp theo', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
	<div align="right" class="actions">
	<!-- <h3><?php __('Actions'); ?></h3> -->
	<ul>
		<li><?php echo $this->Html->link(__('Thêm người dùng', true), array('action' => 'add')); ?></li>
	</ul>
</div>
</div>
